import request from '../../utils/request'

export function getAdminList() {
  return request.get('/admin/admin')
}

export function postAdmin(data) {
  return request.post('/admin/admin',{data:data})
}

export function putAdmin(id,data) {
  return request.put(`/admin/admin/${id}`,{data:data})
}

export function delAdmin(id) {
  return request.delete(`/admin/admin/${id}`)
}